package com.sample.views
{
	import flash.events.Event;
	
	import mx.containers.VBox;
	
	import org.ticlib.navigator.IPage;

	public class Page extends VBox implements IPage
	{
		public static const LOGIN_PAGE:String = "login";
		public static const USER_DETAIL:String = "userDetail";
		public static const USER_LIST:String = "userList";
		
		private var _name:String;
		private var _title:String;
		private var _roles:Array;
		
		[Bindable("nameChange")]
		public function get pageName():String
		{
			return _name;
		}
		
		public function set pageName(value:String):void
		{
			_name = value;
			dispatchEvent(new Event("nameChange"));
		}
		
		[Bindable("titleChange")]
		public function get pageTitle():String
		{
			return _title;
		}
		
		public function set pageTitle(value:String):void
		{
			_title = value;
			dispatchEvent(new Event("titleChange"));
		}
		
		[Bindable("rolesChange")]
		public function get authorizedRoles():Array
		{
			return _roles;
		}
		
		public function set authorizedRoles(value:Array):void
		{
			_roles = value;
			dispatchEvent(new Event("rolesChange"));
		}

		public function load(params:Object, reload:Boolean):void
		{
			
		}
		
	}
}